package com.moore.model;

public class Goods {
    // id
    private final int id;
    // 名称
    private final String name;
    // 图片
    private final String image;
    // 价格
    private final double price;
    // 库存
    private final int inventory;
    // 分类
    private final int classify;
    // 状态
    private final int state;

    public Goods(int id, String name, String image, double price, int inventory, int classify, int state) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.price = price;
        this.inventory = inventory;
        this.classify = classify;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getImage() {
        return image;
    }

    public double getPrice() {
        return price;
    }

    public int getInventory() {
        return inventory;
    }

    public int getClassify() {
        return classify;
    }

    public int getState() {
        return state;
    }
}
